# Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
# All rights reserved.
#
# This software may be modified and distributed under the terms of the
# BSD-3-Clause license. See the accompanying LICENSE file for details.

cmake_minimum_required(VERSION 3.12)

find_package(YARP COMPONENTS os REQUIRED)

add_library(hoopy SHARED)
target_sources(hoopy PRIVATE hoopy.cpp)
target_include_directories(hoopy PRIVATE ${CMAKE_SOURCE_DIR})
target_link_libraries(hoopy PRIVATE YARP::YARP_os)

add_executable(test_hoopy)
target_sources(test_hoopy PRIVATE test_hoopy.cpp)
target_include_directories(test_hoopy PRIVATE ${CMAKE_SOURCE_DIR})
target_link_libraries(test_hoopy PRIVATE YARP::YARP_os YARP::YARP_init)
